package com.sunnypower.rushfitapp.ysq;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import androidx.annotation.Nullable;

import com.sunnypower.rushfitapp.R;

public class GuiderActivity extends Activity {
    TextView firstButton;
    TextView secondButton;
    TextView thirdButton;
    private View.OnClickListener mOnClickListener = new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            switch (v.getId()){
                case R.id.firstButton:
                Intent intent = new Intent(GuiderActivity.this,OneweekActivity.class);
                startActivity(intent);
                break;
                case R.id.secondButton:
                    Intent intent2 = new Intent(GuiderActivity.this,EatwhatActivity.class);
                    startActivity(intent2);
                    break;
                case R.id.thirdButton:
                    Intent intent3 = new Intent(GuiderActivity.this,ErrorguiderActivity.class);
                    startActivity(intent3);
                    break;
            }
        }
    };
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_guider);
        firstButton = (TextView) findViewById(R.id.firstButton);
        firstButton.setOnClickListener(mOnClickListener);

        secondButton = (TextView) findViewById(R.id.secondButton);
        secondButton.setOnClickListener(mOnClickListener);
        thirdButton = (TextView) findViewById(R.id.thirdButton);
        thirdButton.setOnClickListener(mOnClickListener);
    }
}
